<template>
  <div>
    <el-row>
      <el-button @click="goHomeClick">去往home</el-button>
      <el-button type="primary" @click="increment">increment</el-button>
      <el-button type="success">vue_i18n{{ $t('name') }}</el-button>
      <el-button type="info" @click="changelange">改变语言</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>
  </div>
</template>
<script>
  import { changelange } from '@/language/index.js'
  export default {
    methods: {
      goHomeClick() {
        this.$router.push('/')
      },
      increment() {
        this.$store.commit('increment')
      },
      changelange() {
        changelange()
      }
    }
  }
</script>
